package com.hry.spring.bean;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

@Component
public class Student {


	Teacher teacher;

	@Autowired
	public void setTeacher(Teacher teacher) {
		this.teacher = teacher;
	}

	public Student() {
		System.out.println("-----------Student创建-----------");
	}
}
